package com.example.cons.controller;

import com.example.cons.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author:ChenSheng
 * @Description:
 * @Date: Created in 下午 17:03 2018/6/11 0011
 */
@RestController
public class IndexController {


    @Autowired
    UserService userService;

    @RequestMapping("/index")
    public String index(){
        return userService.index().toString();
    }

}
